Skip to content

cli-15: Enhance Session Management#499

Merged
dwash96 merged 14 commits intocecli-dev:v0.99.9from
szmania:cli-15-enhance-session-management
Apr 30, 2026
Merged

cli-15: Enhance Session Management#499
dwash96 merged 14 commits intocecli-dev:v0.99.9from
szmania:cli-15-enhance-session-management

Conversation

@szmania
Copy link
Copy Markdown

@szmania szmania commented Apr 28, 2026

Summary

This PR enhances session management in Cecli by improving the saving and loading of agent configurations, MCP states, tools, skills, and hooks. The changes ensure that sessions are properly serialized and deserialized, including handling edge cases like None skill lists and WindowsPath objects.

Changes

  • feat: Save and load MCP, tool, and skill states in sessions (5554c45)
  • fix: Correctly retrieve and manage enabled hooks during session save/load (9213b2f)
  • refactor: Save and load agent tools configuration in session (999c121)
  • fix: Convert skill lists to serializable format for session saving (25294e8)
  • fix: Handle None skill lists when saving sessions (a3ac3b5)
  • refactor: Update session to save skills paths and lists (59789b5)
  • fix: Convert WindowsPath to string for JSON serialization (a435f07)
  • fix: Rename agent_config to tools in session data (6e4f9eb)
  • test: Add tests for session save/load agent config (d7b6d3b)
  • chore: Fixed formatting (390fb25)
  • chore: Merge in changes (274d654)

Key Improvements

  1. Session Serialization: Ensures all session data (MCP states, tools, skills, hooks) is properly serialized and deserialized.
  2. Edge Case Handling: Addresses edge cases like None skill lists and WindowsPath objects to prevent serialization errors.
  3. Testing: Adds tests to validate the session save/load functionality for agent configurations.

Impact

  • Reliability: Sessions are now more reliable and can be restored without errors.
  • Maintainability: Code is more maintainable with proper serialization and edge case handling.
  • Test Coverage: Improved test coverage for session management.

szmania and others added 14 commits April 26, 2026 00:28
Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
…load

Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
@dwash96 dwash96 changed the base branch from main to v0.99.9 April 30, 2026 00:27
@dwash96 dwash96 merged commit e40439d into cecli-dev:v0.99.9 Apr 30, 2026
12 checks passed
@dwash96 dwash96 mentioned this pull request Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants